package com.dianning.web.action.car;

import java.util.List;
import org.apache.commons.logging.*;

import com.dianning.service.ParameterService;
import com.dianning.web.action.BaseAction;

public class Index extends BaseAction{

	private static final Log logger = LogFactory.getLog(Index.class);
	
	private ParameterService parameterService;
	
	public ParameterService getParameterService() {
		return parameterService;
	}

	public void setParameterService(ParameterService parameterService) {
		this.parameterService = parameterService;
	}
	
	private List carDaijia;
	private List carErshouche;
	private List carFuwu;
	private List carJiaxiao;
	private List carPeijian;
	private List carPinche;
	private List carXinche;
	private List carZixingche;

	public List getCarDaijia() {
		return carDaijia;
	}

	public void setCarDaijia(List carDaijia) {
		this.carDaijia = carDaijia;
	}

	public List getCarErshouche() {
		return carErshouche;
	}

	public void setCarErshouche(List carErshouche) {
		this.carErshouche = carErshouche;
	}

	public List getCarFuwu() {
		return carFuwu;
	}

	public void setCarFuwu(List carFuwu) {
		this.carFuwu = carFuwu;
	}

	public List getCarJiaxiao() {
		return carJiaxiao;
	}

	public void setCarJiaxiao(List carJiaxiao) {
		this.carJiaxiao = carJiaxiao;
	}

	public List getCarPeijian() {
		return carPeijian;
	}

	public void setCarPeijian(List carPeijian) {
		this.carPeijian = carPeijian;
	}

	public List getCarPinche() {
		return carPinche;
	}

	public void setCarPinche(List carPinche) {
		this.carPinche = carPinche;
	}

	public List getCarXinche() {
		return carXinche;
	}

	public void setCarXinche(List carXinche) {
		this.carXinche = carXinche;
	}

	public List getCarZixingche() {
		return carZixingche;
	}

	public void setCarZixingche(List carZixingche) {
		this.carZixingche = carZixingche;
	}

	public String execute() {
		this.setCarDaijia(this.getParameterService().findParameters("carDaijiaType", 2, null,"orders", 0));
		this.setCarErshouche(this.getParameterService().findParameters("carLogoType", 2, null,"orders", 0));
		this.setCarFuwu(this.getParameterService().findParameters("carFuwuType", 2, null,"orders", 0));
		this.setCarJiaxiao(this.getParameterService().findParameters("carJiaxiaoType", 2, null,"orders", 0));
		this.setCarPeijian(this.getParameterService().findParameters("carPeijianType", 2, null,"orders", 0));
		this.setCarXinche(this.getParameterService().findParameters("carLogoType", 2, null,"orders", 0));
		this.setCarZixingche(this.getParameterService().findParameters("carZixingcheType", 2, null,"orders", 0));
		return SUCCESS;
	}
}
